package com.cimu.activemq.queue;

import com.cimu.activemq.constants.Constants;
import lombok.extern.slf4j.Slf4j;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * Title: QueueConsumer
 * Copyright: Copyright (c) 2017
 *
 * date 2018年12月09日 13:51
 */
@Component
@Slf4j
public class QueueConsumer {

    @JmsListener(destination = Constants.DEMO_QUEUE)
    public void receiveQueue(String text) {
        log.info("======{}===========",text);
    }

}
